package cn.edu.sgu.www.mhxysy.dto.school;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class SchoolDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 门派名称
	 */
	@NotBlank(message = "门派名称" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "门派名称", required = true)
	private String name;

	/**
	 * 门派简介
	 */
	@NotBlank(message = "门派简介" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "门派简介", required = true)
	private String note;

	/**
	 * 所属种族
	 */
	@Positive(message = "所属种族" + CustomMessages.ILLEGAL)
	@NotNull(message = "所属种族" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "所属种族", required = true)
	private Integer phyle;

	/**
	 * 性别要求
	 */
	@ApiModelProperty(value = "性别要求")
	private Integer gender;
}